//
//  MainViewController.h
//  V3d_Cocoa
//
//  Created by Y my on 11-3-14.
//  Copyright 2011 NJUST. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "XY_View.h"
#import "XZ_View.h"
#import "YZ_View.h"
#import "My4DImage.h"
#import "MainViewData.h"

@interface MainViewController : UIViewController{
	XY_View* xy_view;
	YZ_View* yz_view;
	XZ_View* xz_view;
	
	UILabel* z;
	UILabel* x;
	UILabel* y;
	
	UISlider* x_slider;
	UISlider* y_slider;
	UISlider* z_slider;
	
	UISegmentedControl * seg_con;
	
	UIButton *openfile;
	UIButton *seeIn3d;
	
	My4DImage* my4DImage;
	MainViewData* mainViewData;
}

//@property (retain) IBOutlet	MainView * main_view;
@property (retain) IBOutlet XY_View* xy_view;
@property (retain) IBOutlet YZ_View* yz_view;
@property (retain) IBOutlet XZ_View* xz_view;

@property (retain) IBOutlet UILabel* z;
@property (retain) IBOutlet UILabel* x;
@property (retain) IBOutlet UILabel* y;

@property (retain) IBOutlet UISlider* x_slider;
@property (retain) IBOutlet UISlider* y_slider;
@property (retain) IBOutlet UISlider* z_slider;

@property (retain) IBOutlet UIButton* openfile;
@property (retain) IBOutlet UIButton* seeIn3d;
@property (retain) IBOutlet UISegmentedControl * seg_con;

@property (readonly) MainViewData* mainViewData;
@property (readonly) My4DImage* my4DImage;

- (IBAction)openFileButtonPressed:(id)sender;
- (IBAction)seeIn3DButtonPressed:(id)sender;
- (IBAction)radioButtonPressed:(id)sender;

- (IBAction)sliderX:(id)sender;
- (IBAction)sliderY:(id)sender;
- (IBAction)sliderZ:(id)sender;

- (void)openFile;
- (void)seeIn3D;
- (void)setViewsFrame;
- (void)updateViewsData;

@end
